package cn.xd.base.application.service.command;

import cn.xd.base.domain.bean.command.ChangePasswordCommand;
import cn.xd.base.domain.bean.command.CreateUserCommand;
import cn.xd.base.domain.entity.GlobalAppUser;

public interface GlobalAppUserAppService {

    Long register(CreateUserCommand command);

    GlobalAppUser getGlobalAppUserByPhone(String phone);

    String getGlobalAppUserPhone(String openId, String unionId, Integer type, Integer appUserType);

    void addAppUserThirdParty(GlobalAppUser user, String openId, String unionId, Integer type, Integer appUserType);

    void changePassword(ChangePasswordCommand command);
}
